﻿{% extends 'base.html' %} 

<!-- 导入css和js -->
{% block cssAndjava %}
<link rel=stylesheet type="text/css" href="/css/attention.css">
<script type="text/javascript" src="/script/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/script/attention.js" charset="utf-8"></script>
{% endblock cssAndjava %} 

<!-- 修改页边 -->
{% block pageside %}
<div class="attention_side">
	<table>
		<tr><td><a href="/attention/add/" target="_blank">添加文章</a></td></tr>
		<tr><td onclick="update_attention('-1')">最新文章</td></tr>
	</table>
	<br>
	<table>
		<tr><th>输入标题：</th></tr>
		<tr><th><input id="id_search" type="text" name="search" maxlength="50" /></th></tr>
		<tr><th><button type="button" onclick="update_attention_search()">搜索</button></th></tr>
	</table>
	<br>
	<table>
		<tr><th>选择标签</th></tr>
		{% for one in labelinfo %}
			<tr><td onclick="update_attention('{{one.0}}')">{{one.0}}</td></tr>
		{% endfor %}
	</table>
</div>
{% endblock pageside %}

<!-- 修改主体内容 -->
{% block mainbody %}
<div id="div_attention">
	<script language="JavaScript">
    update_attention('-1')
  </script>
</div>
{% endblock mainbody %}